home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / pipnss / nsICRLManager.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  7KB  |  167 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsICRLManager.idl
  3.  */
  4.  
  5. #ifndef __gen_nsICRLManager_h__
  6. #define __gen_nsICRLManager_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIURI; /* forward declaration */
  18.  
  19. class nsIArray; /* forward declaration */
  20.  
  21. class nsICRLInfo; /* forward declaration */
  22.  
  23. #define NS_CRLMANAGER_CID { /* 5b256c10-22d8-4109-af92-1253035e9fcb */ \
  24.     0x5b256c10, \
  25.     0x22d8, \
  26.     0x4109, \
  27.     {0xaf, 0x92, 0x12, 0x53, 0x03, 0x5e, 0x9f, 0xcb} \
  28.   }
  29. #define NS_CRLMANAGER_CONTRACTID "@mozilla.org/security/crlmanager;1"
  30.  
  31. /* starting interface:    nsICRLManager */
  32. #define NS_ICRLMANAGER_IID_STR "486755db-627a-4678-a21b-f6a63bb9c56a"
  33.  
  34. #define NS_ICRLMANAGER_IID \
  35.   {0x486755db, 0x627a, 0x4678, \
  36.     { 0xa2, 0x1b, 0xf6, 0xa6, 0x3b, 0xb9, 0xc5, 0x6a }}
  37.  
  38. class NS_NO_VTABLE nsICRLManager : public nsISupports {
  39.  public: 
  40.  
  41.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICRLMANAGER_IID)
  42.  
  43.   /* void importCrl ([array, size_is (length)] in octet data, in unsigned long length, in nsIURI uri, in unsigned long type, in boolean doSilentDownload, in wstring crlKey); */
  44.   NS_IMETHOD ImportCrl(PRUint8 *data, PRUint32 length, nsIURI *uri, PRUint32 type, PRBool doSilentDownload, const PRUnichar *crlKey) = 0;
  45.  
  46.   /* boolean updateCRLFromURL (in wstring url, in wstring key); */
  47.   NS_IMETHOD UpdateCRLFromURL(const PRUnichar *url, const PRUnichar *key, PRBool *_retval) = 0;
  48.  
  49.   /* nsIArray getCrls (); */
  50.   NS_IMETHOD GetCrls(nsIArray **_retval) = 0;
  51.  
  52.   /* void deleteCrl (in unsigned long crlIndex); */
  53.   NS_IMETHOD DeleteCrl(PRUint32 crlIndex) = 0;
  54.  
  55.   /* void rescheduleCRLAutoUpdate (); */
  56.   NS_IMETHOD RescheduleCRLAutoUpdate(void) = 0;
  57.  
  58.   enum { TYPE_AUTOUPDATE_TIME_BASED = 1U };
  59.  
  60.   enum { TYPE_AUTOUPDATE_FREQ_BASED = 2U };
  61.  
  62.   /* wstring computeNextAutoUpdateTime (in nsICRLInfo info, in unsigned long autoUpdateType, in double noOfDays); */
  63.   NS_IMETHOD ComputeNextAutoUpdateTime(nsICRLInfo *info, PRUint32 autoUpdateType, double noOfDays, PRUnichar **_retval) = 0;
  64.  
  65. };
  66.  
  67. /* Use this macro when declaring classes that implement this interface. */
  68. #define NS_DECL_NSICRLMANAGER \
  69.   NS_IMETHOD ImportCrl(PRUint8 *data, PRUint32 length, nsIURI *uri, PRUint32 type, PRBool doSilentDownload, const PRUnichar *crlKey); \
  70.   NS_IMETHOD UpdateCRLFromURL(const PRUnichar *url, const PRUnichar *key, PRBool *_retval); \
  71.   NS_IMETHOD GetCrls(nsIArray **_retval); \
  72.   NS_IMETHOD DeleteCrl(PRUint32 crlIndex); \
  73.   NS_IMETHOD RescheduleCRLAutoUpdate(void); \
  74.   NS_IMETHOD ComputeNextAutoUpdateTime(nsICRLInfo *info, PRUint32 autoUpdateType, double noOfDays, PRUnichar **_retval); 
  75.  
  76. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  77. #define NS_FORWARD_NSICRLMANAGER(_to) \
  78.   NS_IMETHOD ImportCrl(PRUint8 *data, PRUint32 length, nsIURI *uri, PRUint32 type, PRBool doSilentDownload, const PRUnichar *crlKey) { return _to ImportCrl(data, length, uri, type, doSilentDownload, crlKey); } \
  79.   NS_IMETHOD UpdateCRLFromURL(const PRUnichar *url, const PRUnichar *key, PRBool *_retval) { return _to UpdateCRLFromURL(url, key, _retval); } \
  80.   NS_IMETHOD GetCrls(nsIArray **_retval) { return _to GetCrls(_retval); } \
  81.   NS_IMETHOD DeleteCrl(PRUint32 crlIndex) { return _to DeleteCrl(crlIndex); } \
  82.   NS_IMETHOD RescheduleCRLAutoUpdate(void) { return _to RescheduleCRLAutoUpdate(); } \
  83.   NS_IMETHOD ComputeNextAutoUpdateTime(nsICRLInfo *info, PRUint32 autoUpdateType, double noOfDays, PRUnichar **_retval) { return _to ComputeNextAutoUpdateTime(info, autoUpdateType, noOfDays, _retval); } 
  84.  
  85. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  86. #define NS_FORWARD_SAFE_NSICRLMANAGER(_to) \
  87.   NS_IMETHOD ImportCrl(PRUint8 *data, PRUint32 length, nsIURI *uri, PRUint32 type, PRBool doSilentDownload, const PRUnichar *crlKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportCrl(data, length, uri, type, doSilentDownload, crlKey); } \
  88.   NS_IMETHOD UpdateCRLFromURL(const PRUnichar *url, const PRUnichar *key, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateCRLFromURL(url, key, _retval); } \
  89.   NS_IMETHOD GetCrls(nsIArray **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCrls(_retval); } \
  90.   NS_IMETHOD DeleteCrl(PRUint32 crlIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCrl(crlIndex); } \
  91.   NS_IMETHOD RescheduleCRLAutoUpdate(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->RescheduleCRLAutoUpdate(); } \
  92.   NS_IMETHOD ComputeNextAutoUpdateTime(nsICRLInfo *info, PRUint32 autoUpdateType, double noOfDays, PRUnichar **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ComputeNextAutoUpdateTime(info, autoUpdateType, noOfDays, _retval); } 
  93.  
  94. #if 0
  95. /* Use the code below as a template for the implementation class for this interface. */
  96.  
  97. /* Header file */
  98. class nsCRLManager : public nsICRLManager
  99. {
  100. public:
  101.   NS_DECL_ISUPPORTS
  102.   NS_DECL_NSICRLMANAGER
  103.  
  104.   nsCRLManager();
  105.  
  106. private:
  107.   ~nsCRLManager();
  108.  
  109. protected:
  110.   /* additional members */
  111. };
  112.  
  113. /* Implementation file */
  114. NS_IMPL_ISUPPORTS1(nsCRLManager, nsICRLManager)
  115.  
  116. nsCRLManager::nsCRLManager()
  117. {
  118.   /* member initializers and constructor code */
  119. }
  120.  
  121. nsCRLManager::~nsCRLManager()
  122. {
  123.   /* destructor code */
  124. }
  125.  
  126. /* void importCrl ([array, size_is (length)] in octet data, in unsigned long length, in nsIURI uri, in unsigned long type, in boolean doSilentDownload, in wstring crlKey); */
  127. NS_IMETHODIMP nsCRLManager::ImportCrl(PRUint8 *data, PRUint32 length, nsIURI *uri, PRUint32 type, PRBool doSilentDownload, const PRUnichar *crlKey)
  128. {
  129.     return NS_ERROR_NOT_IMPLEMENTED;
  130. }
  131.  
  132. /* boolean updateCRLFromURL (in wstring url, in wstring key); */
  133. NS_IMETHODIMP nsCRLManager::UpdateCRLFromURL(const PRUnichar *url, const PRUnichar *key, PRBool *_retval)
  134. {
  135.     return NS_ERROR_NOT_IMPLEMENTED;
  136. }
  137.  
  138. /* nsIArray getCrls (); */
  139. NS_IMETHODIMP nsCRLManager::GetCrls(nsIArray **_retval)
  140. {
  141.     return NS_ERROR_NOT_IMPLEMENTED;
  142. }
  143.  
  144. /* void deleteCrl (in unsigned long crlIndex); */
  145. NS_IMETHODIMP nsCRLManager::DeleteCrl(PRUint32 crlIndex)
  146. {
  147.     return NS_ERROR_NOT_IMPLEMENTED;
  148. }
  149.  
  150. /* void rescheduleCRLAutoUpdate (); */
  151. NS_IMETHODIMP nsCRLManager::RescheduleCRLAutoUpdate()
  152. {
  153.     return NS_ERROR_NOT_IMPLEMENTED;
  154. }
  155.  
  156. /* wstring computeNextAutoUpdateTime (in nsICRLInfo info, in unsigned long autoUpdateType, in double noOfDays); */
  157. NS_IMETHODIMP nsCRLManager::ComputeNextAutoUpdateTime(nsICRLInfo *info, PRUint32 autoUpdateType, double noOfDays, PRUnichar **_retval)
  158. {
  159.     return NS_ERROR_NOT_IMPLEMENTED;
  160. }
  161.  
  162. /* End of implementation class template. */
  163. #endif
  164.  
  165.  
  166. #endif /* __gen_nsICRLManager_h__ */
  167.